---
import List from '../../components/list.astro'
import { getChannelInfo } from '../../lib/telegram'

const q = Astro.url.searchParams.get('q') || Astro.params.q
const channel = await getChannelInfo(Astro, {
  q,
})

channel.seo = {
  title: `${q}`,
}
---

<List channel={channel} before={false} after={false} />
